#include "EtatRobotAVide.h"


static EtatRobotAVide* instance;

EtatRobotAVide* EtatRobotAVide::getInstance(Robot* r){

	if(instance == NULL)
		instance = new EtatRobotAVide(r);

	return instance;
}

void EtatRobotAVide::avancer(){
}

void EtatRobotAVide::tourner(){
}

void EtatRobotAVide::rencontrerObstacle(){
	r->changerEtat((EtatRobot*)EtatRobotAVideFaceObstacle::getInstance(r));
}

